package com.ruoyi.project.cms.pm.service;

import com.ruoyi.project.cms.pm.domain.Process;
import com.ruoyi.project.cms.pm.domain.Project;
import org.springframework.stereotype.Service;

import java.util.List;
public interface ProjectService {
    /**
     * @return java.util.List<com.ruoyi.project.cms.pm.domain.Project>
     * @Author Joseph Wang
     * @Description 根据搜索条件查询项目分页展示
     * @Date 12:19 18/05/2020
     * @Param project 项目类
     **/
    List<Project> findProjectList(Project project);

    /**
     * @return com.ruoyi.project.cms.pm.domain.Project
     * @Author Joseph Wang
     * @Description 根据项目id查询详情
     * @Date 00:37 19/05/2020
     * @Param [pid] 项目编号
     **/
    Project findProjectById(String pid);

    /**
     * @return java.util.List<com.ruoyi.project.cms.pm.domain.Project>
     * @Author Joseph Wang
     * @Description 根据搜索条件查询未分配任务得项目分页展示
     * @Date 12:19 18/05/2020
     * @Param project 项目类
     **/
    List<Project> findUnassignedProject(Project project);

    /**
     * @return int
     * @Author Joseph Wang
     * @Description 往项目添加任务
     * @Date 13:51 20/05/2020
     * @Param [process]
     **/
    int insertAssignment(Process process);

}
